#include "Shooter_PCH.h"
#include "MeshManager.h"

/*--------------------------------------------------------------------------*/

MeshManager::MeshManager()
{

}

/*--------------------------------------------------------------------------*/

MeshManager::~MeshManager()
{

}

/*--------------------------------------------------------------------------*/

void MeshManager::Load( const std::string& name )
{
	Mesh* mesh = new Mesh(name, "../data/mesh/" + name + "/" + name + ".3ds");
	Register(name, mesh);
}

/*--------------------------------------------------------------------------*/

void MeshManager::Unload( const std::string& name )
{
	Mesh* mesh = Get(name);

	if (mesh)
	{
		delete mesh;
	}
}

/*--------------------------------------------------------------------------*/
